package com.gm.commonlib.base.baseui.baseactivity;

import android.content.Context;

import com.gm.commonlib.base.basePresenter.BasePresenter;
import com.gm.commonlib.views.dialog.loadingDialog.ILoadingDialog;
import com.gm.commonlib.views.dialog.loadingDialog.LoadingDialog;
import com.gm.commonlib.views.dialog.loadingDialog.LoadingDialogFactory;
import com.gm.commonlib.views.toast.DefaultToast;
import com.gm.commonlib.views.toast.IToast;
import com.gm.commonlib.views.toast.ToastFactory;
import com.gm.commonlib.views.toast.ToastUtil;


/**
 * 所有activity的基类
 */
public class BaseActivity extends CommonAbstractBaseActivity {


    @Override
    ILoadingDialog createLoadingDialog() {
        return LoadingDialogFactory.newInstance();
    }

    @Override
    IToast createToast() {
        return ToastFactory.newInstance();
    }

    @Override
    BasePresenter createPresenter() {
        return null;
    }


    @Override
    public Context getContent() {
        return this;
    }





}
